using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

public class TutorialStep6 : MonoBehaviour
{
	[SerializeField]
	private Button target;

	[SerializeField]
	private GameObject arrow;

	[SerializeField]
	private GameObject hideSpecial;

	[SerializeField]
	private GameObject elevatorArrow;

	[SerializeField]
	private GameObject warehouseArrow;

	private UnityAction stepDone;

	private void Start()
	{
		int @int = PlayerPrefs.GetInt("Tutorial");
		if (@int < 6)
		{
			arrow.SetActive(@int == 5);
			stepDone = StepDone;
			target.onClick.AddListener(stepDone);
			hideSpecial.SetActive(@int == 6);
		}
		else
		{
			arrow.SetActive(value: false);
			elevatorArrow.SetActive(value: true);
			warehouseArrow.SetActive(value: true);
		}
	}

	private void StepDone()
	{
		arrow.SetActive(value: false);
		PlayerPrefs.SetInt("Tutorial", 6);
		target.onClick.RemoveListener(stepDone);
		hideSpecial.SetActive(value: true);
		elevatorArrow.SetActive(value: true);
		warehouseArrow.SetActive(value: true);
		//Tracking.instance.FB_TutorialComplete();
	}

	public void Active()
	{
		arrow.SetActive(value: true);
	}
}
